import {Service, util} from "adajs";

class SubmenuService extends Service {
    defaultData() {
        return {
            links: [
                [{name: "link", link: ""}, {name: "link", link: ""}],
                [{name: "link", link: ""}, {name: "link", link: ""}],
                [{name: "link", link: ""}, {name: "link", link: ""}],
                [{name: "link", link: ""}, {name: "link", link: ""}],
                [{name: "link", link: ""}, {name: "link", link: ""}]
            ]
        };
    }

    onupdate(current, data) {
        return util.extend(current, data);
    }
}

export default SubmenuService;